import request from '@/utils/request'

// 查询个人专家列表
export function personalList(query) {
    return request({
        url: '/projectLeader/personalExpert/list',
        method: 'get',
        params: query
    })
}

// 查询专业分类
export function professionList(query) {
    return request({
        url: '/projectLeader/personalExpert/expertTypeList',
        method: 'get',
        params: query
    })
}

// 查询专家使用情况
export function expertUseList(query) {
    return request({
        url: '/projectLeader/personalExpert/expertUseList',
        method: 'get',
        params: query
    })
}

// 导出专家使用情况
export function exportExpertUse(query) {
    return request({
        url: '/projectLeader/personalExpert/expertExpertUse',
        method: 'get',
        params: query
    })
}

// 个人专家详细信息
export function personalExpertInfo(query) {
    return request({
        url: '/projectLeader/personalExpert/' + query,
        method: 'get'
    })
}

// 修改个人专家
export function updatePersonalExpert(data) {
    return request({
        url: '/projectLeader/personalExpert',
        method: 'put',
        data: data
    })
}

// 新增个人专家
export function addPersonalExpert(data) {
    return request({
        url: '/projectLeader/personalExpert',
        method: 'post',
        data: data
    })
}